import request from '@/utils/request'

export function findAllByPage(params) {
  return request({
    url: '/order/platform/list',
    method: 'get',
    params
  })
}

export function addOrderplatform(data) {
  return request({
    url: '/order/platform/add',
    method: 'post',
    data
  })
}

export function updateOrderplatform(data) {
  return request({
    url: '/order/platform/update',
    method: 'post',
    data
  })
}

export function deleteOrderplatform(ids) {
  return request({
    url: '/order/platform/delete',
    method: 'post',
    params: { ids: ids }
  })
}

export function uploadExcel(data) {
  return request({
    url: '/order/platform/upload/excel',
    method: 'post',
    data
  })
}
export function findAllPlatformName(){
  return request({
    url: '/base/platform/namelist',
    method: 'get',
  })
}
